<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>示例7</title>
    <script src="tool.js"></script>
    <script src="jquery.js"></script>
    <script>
        jQuery.noConflict();
        console.log($);
        // jQuery(document).ready(function ($){
        //     $('[class]').css("color","red")
        // })

        (function ($){
            $(function (){
                $('[class]').css("color","red")
            })
        })(jQuery)
    </script>
</head>
<body>
    <h1 class="one">java</h1>
    <h2 id="two" class="two">html</h2>
    <h3 id="three">css</h3>
</body>
</html>